package com.wltt.product.ahuthr.mapper;

import java.util.List;

import com.wltt.product.ahuthr.model.bo.AgreementBO;
import com.wltt.product.ahuthr.model.bo.AgreementWithAttributeBO;
import org.apache.ibatis.annotations.Param;
import com.wltt.product.ahuthr.model.po.AgreementPO;
import com.wltt.product.ahuthr.mapper.base.BaseMapper;


/**
 * @ClassName: AgreementPO
 * @Description: 人员协议 Dao
 * @Date: 2024-08-07 09:50:27
 * @Author yanggl
 */
public interface AgreementMapper extends BaseMapper<AgreementPO, Long> {

    /**
     * 根据用户id查询协议
     *
     * @return
     */
    List<AgreementBO> queryByUserId(@Param("userId") Long userId);

    /**
     * 查询需要提醒的合同信息
     *
     * @return
     */
    List<AgreementWithAttributeBO> queryForRemind();
}